# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=vectoroids
pkgver=1.1.0
pkgrel=1
pkgdesc="Vector-based rock-shooting"
url="http://www.newbreedsoftware.com/vectoroids/"
arch="all"
license="GPL-2.0-or-later"
depends="libmikmod"
makedepends="sdl12-compat-dev sdl_image-dev sdl_mixer-dev"
subpackages="$pkgname-doc"
options="!check" # No test suite
source="https://github.com/antonialoytorrens/nbs/raw/master/unix/x/vectoroids/src/vectoroids-$pkgver.tar.gz
	vectoroids.desktop
	vectoroids-icon.xpm
	"

build() {
	make DATA_PREFIX=/usr/share/games/vectoroids/
}

package() {
	make install \
		DATA_PREFIX="$pkgdir"/usr/share/games/vectoroids \
		BIN_PREFIX="$pkgdir"/usr/bin \
		MAN_PREFIX="$pkgdir"/usr/share/man
	install -Dm644 "$srcdir"/vectoroids-icon.xpm \
	"$pkgdir"/usr/share/pixmaps/vectoroids-icon.xpm
	install -Dm664 "$srcdir"/vectoroids.desktop \
	"$pkgdir"/usr/share/applications/vectoroids.desktop
}

sha512sums="d392f996c77cb7b02b25c8273623b71681c181a3d7078b6cd0068afb1ef03e7d3553c2cc662a272465882e06f73208a68665197d4dcc2206888e2768f768997d  vectoroids-1.1.0.tar.gz
fde69036c2273c01a623e762e88d541e3e5ee5ac3b07163525b7d72f25a2caf4b81f0f954c2a415993d5e04763b2259c92ff2a6c78a94c9b936411addeaa22de  vectoroids.desktop
a47d267547e766549e5425eef48442370903120b02e5c18ba92c08a6448637fd5d8e3814856990630fccf6cf407c10ccf4ef360108e284ebd0b706526c774395  vectoroids-icon.xpm"
